<template>
  <view class="nutrition">
    <view class="nutrition_title">每100g{{ foodDetail.name }}同等热量的运动</view>
    <view class="nutrition_main">
        <view class="nutrition_item">
        <image src="https://smosun-minapp.oss-cn-shanghai.aliyuncs.com/weapp/img/search/yd1.png" mode=""></image>
        <view class="nutrition_item_title"><view>慢走</view><view>{{foodDetail.sportWalkSlowly}}分钟</view></view>
        </view>
        <view class="nutrition_item">
        <image src="https://smosun-minapp.oss-cn-shanghai.aliyuncs.com/weapp/img/search/yd2.png" mode=""></image>
        <view class="nutrition_item_title"><view>快跑</view><view>{{foodDetail.sportRun}}分钟</view></view>
        </view>
        <view class="nutrition_item">
        <image src="https://smosun-minapp.oss-cn-shanghai.aliyuncs.com/weapp/img/search/yd3.png" mode=""></image>
        <view class="nutrition_item_title"><view>爬楼梯</view><view>{{foodDetail.sportClimbStairs}}分钟</view></view>
        </view>
        <view class="nutrition_item">
        <image src="https://smosun-minapp.oss-cn-shanghai.aliyuncs.com/weapp/img/search/yd4.png" mode=""></image>
        <view class="nutrition_item_title"><view>跳绳</view><view>{{foodDetail.sportSkippingRope}}分钟</view></view>
        </view>
        <view class="nutrition_item">
        <image src="https://smosun-minapp.oss-cn-shanghai.aliyuncs.com/weapp/img/search/yd5.png" mode=""></image>
        <view class="nutrition_item_title"><view>骑车</view><view>{{foodDetail.sportCycling}}分钟</view></view>
        </view>
        <view class="nutrition_item">
        <image src="https://smosun-minapp.oss-cn-shanghai.aliyuncs.com/weapp/img/search/yd6.png" mode=""></image>
        <view class="nutrition_item_title"><view>慢跑</view><view>{{foodDetail.sportJogging}}分钟</view></view>
        </view>
        <view class="nutrition_item">
        <image src="https://smosun-minapp.oss-cn-shanghai.aliyuncs.com/weapp/img/search/yd7.png" mode=""></image>
        <view class="nutrition_item_title"><view>健身操</view><view>{{foodDetail.sportAerobics}}分钟</view></view>
        </view>
        <view class="nutrition_item">
        <image src="https://smosun-minapp.oss-cn-shanghai.aliyuncs.com/weapp/img/search/yd8.png" mode=""></image>
        <view class="nutrition_item_title"><view>羽毛球</view><view>{{foodDetail.sportBadminton}}分钟</view></view>
        </view>
        <view class="nutrition_item">
        <image src="https://smosun-minapp.oss-cn-shanghai.aliyuncs.com/weapp/img/search/yd9.png" mode=""></image>
        <view class="nutrition_item_title"><view>网球</view><view>{{foodDetail.sportTennis}}分钟</view></view>
        </view>
        <view class="nutrition_item">
        <image src="https://smosun-minapp.oss-cn-shanghai.aliyuncs.com/weapp/img/search/yd10.png" mode=""></image>
        <view class="nutrition_item_title"><view>快走</view><view>{{foodDetail.sportHurry}}分钟</view></view>
        </view>
    </view>
  </view>
</template>

<script>
  export default {
    data(){
      return{
        id:'',
        foodDetail:'',

      }
    },
    onLoad(options) {
     this.id=options.id
      this.request.httpTokenRequest(`/mp-api/wx/food/details/${this.id}`,null,'POST',true).then( res=> {
       if(res.code==0){
         this.foodDetail=res.data
       }
      })
    },
    methods:{

    }
  }
</script>

<style>
</style>
